﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using IService.DataDLL;
using IService.Model;

namespace IService.Data.IManager
{
	public interface ITypeDaManager
	{
		DTVType GetTypeById(DTVType type);
		DataTable GetTypeListAll(Type infoType);
		DataTable GetSubTypeListByPid(Type infoType, int parentId, int bigTypeId);
		DataTable GetTypeListPagin(Type infoType, PagingEntity pe);
		//DataTable GetTypesBySystem(Type infoType, string RegisterSystem, string Order);
		//DataTable GetParentTypeBySystem(Type infoType, string RegisterSystem, string Order);
		int CountSubType(Type infoType, string WhereClause);
		bool InsertType(DTVType type);
		bool UpdateType(DTVType type);
		bool DeleteType(DTVType type);
		bool DeleteTypeByIds(Type infoType, string WhereClause);
		DataTable GetTypeListByYear(Type infoType, int year);
	}
}
